package com.shqcjd.preinstallmobile.model.pojo;

import java.util.List;

/**
 * Created by sy on 2019/3/25.
 */

public class IndexBean {


    /**
     * menus : [{"childs":[{"childs":null,"current":{"id":44,"menu_name":"巡检系统","parent_id":2,"url":"#","icon":null},"name":"巡检系统","value":"#"},{"childs":null,"current":{"id":45,"menu_name":"缺陷管理","parent_id":2,"url":"#","icon":null},"name":"缺陷管理","value":"#"},{"childs":null,"current":{"id":46,"menu_name":"远程指导","parent_id":2,"url":"#","icon":null},"name":"远程指导","value":"#"},{"childs":null,"current":{"id":47,"menu_name":"图像回放","parent_id":2,"url":"#","icon":null},"name":"图像回放","value":"#"},{"childs":null,"current":{"id":48,"menu_name":"设备管理","parent_id":2,"url":"#","icon":null},"name":"设备管理","value":"#"}],"current":{"id":2,"menu_name":"App导航","parent_id":0,"url":"NAVICATION","icon":"http://yuhuantest.yunweiyan.com/file/6c64d3c9-f759-44fb-af2f-0165b257b64b.png"},"name":"App导航","value":"NAVICATION"},{"childs":null,"current":{"id":3,"menu_name":"华能头条","parent_id":0,"url":"NEWS","icon":null},"name":"华能头条","value":"NEWS"},{"childs":null,"current":{"id":41,"menu_name":"消缺率","parent_id":0,"url":"HANDLED","icon":null},"name":"消缺率","value":"HANDLED"},{"childs":null,"current":{"id":42,"menu_name":"设备实时状态","parent_id":0,"url":"EQUIPMENT","icon":null},"name":"设备实时状态","value":"EQUIPMENT"},{"childs":null,"current":{"id":43,"menu_name":"专家指导","parent_id":0,"url":"EXPERT","icon":null},"name":"专家指导","value":"EXPERT"}]
     * news : [{"id":35,"title":"11111111111","img":"http://yuhuantest.yunweiyan.com/file/398f7927-3e5f-4f94-ba99-fba0d855a7c0.png"},{"id":34,"title":"这个标题长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长","img":null},{"id":33,"title":"123","img":null},{"id":3,"title":"测试新闻34343213213","img":"http://yuhuantest.yunweiyan.com/file/fa4c0529-b694-4d42-92a7-15e956e8c46e.png"},{"id":4,"title":"测试新闻3","img":null},{"id":5,"title":"测试新闻3","img":"http://yuhuantest.yunweiyan.com/file/2013a43a-340a-4f69-9cff-01ec38d5ecb8.png"},{"id":6,"title":"测试新闻3","img":null},{"id":7,"title":"测试新闻3","img":null},{"id":8,"title":"测试新闻3","img":null},{"id":10,"title":"测试新闻3","img":null}]
     * handle : {"rate":[1,1],"equipment_type":[{"name":"测试类型1","value":50},{"name":"最新测试设备类型123","value":100},{"name":"3213214214","value":100}]}
     * equipment_state : [{"id":1,"name":"测试设备1","img":"www.baidu.com","state":1,"exception":0},{"id":2,"name":"测试设备2","img":"www.baidu.com","state":1,"exception":0},{"id":5,"name":"有部位项的设备","img":"http://yuhuantest.yunweiyan.com/file/c9ecb2df-364d-461d-acf7-eff4058ced85.png","state":1,"exception":0},{"id":3,"name":"测试设备3","img":"www.baidu.com","state":1,"exception":0}]
     * expert : [{"id":39,"name":"测试专家5","info":"没有描述","expert_type":"专家","img":"www.baidu.com"},{"id":40,"name":"测试专家6","info":"没有描述","expert_type":"专家","img":"www.baidu.com"},{"id":41,"name":"测试专家7","info":"没有描述","expert_type":"专工","img":"www.baidu.com"},{"id":42,"name":"测试专家8","info":"没有描述","expert_type":"专家","img":"www.baidu.com"},{"id":43,"name":"测试专家9","info":"没有描述","expert_type":"专家","img":"www.baidu.com"},{"id":44,"name":"测试专家10","info":"没有描述","expert_type":"专家","img":"www.baidu.com"},{"id":45,"name":"测试专家1","info":"没有描述","expert_type":"专家","img":"www.baidu.com"},{"id":46,"name":"测试专家1","info":"没有描述","expert_type":"专家","img":"www.baidu.com"},{"id":47,"name":"测试专家1","info":"没有描述","expert_type":"专工","img":"www.baidu.com"},{"id":48,"name":"测试专家1","info":"没有描述","expert_type":"专家","img":"www.baidu.com"}]
     */

    public HandleBean handle;
    public List<MenusBean> menus;
    public List<NewsBean> news;
    public List<EquipmentStateBean> equipment_state;
    public List<ExpertBean> expert;

    public static class HandleBean {

        public List<RateBean> rate;
        public List<EquipmentTypeBean> equipment_type;

        public static class RateBean {
            /**
             * name : 未消缺
             * value : 0
             */

            public String name;
            public int value;
        }

        public static class EquipmentTypeBean {
            /**
             * name : 变压器
             * value : 100.0
             */

            public String name;
            public double value;
        }
    }

    public static class MenusBean {
        /**
         * childs : [{"childs":null,"current":{"id":44,"menu_name":"巡检系统","parent_id":2,"url":"#","icon":null},"name":"巡检系统","value":"#"},{"childs":null,"current":{"id":45,"menu_name":"缺陷管理","parent_id":2,"url":"#","icon":null},"name":"缺陷管理","value":"#"},{"childs":null,"current":{"id":46,"menu_name":"远程指导","parent_id":2,"url":"#","icon":null},"name":"远程指导","value":"#"},{"childs":null,"current":{"id":47,"menu_name":"图像回放","parent_id":2,"url":"#","icon":null},"name":"图像回放","value":"#"},{"childs":null,"current":{"id":48,"menu_name":"设备管理","parent_id":2,"url":"#","icon":null},"name":"设备管理","value":"#"}]
         * current : {"id":2,"menu_name":"App导航","parent_id":0,"url":"NAVICATION","icon":"http://yuhuantest.yunweiyan.com/file/6c64d3c9-f759-44fb-af2f-0165b257b64b.png"}
         * name : App导航
         * value : NAVICATION
         */

        public CurrentBean current;
        public String name;
        public String value;
        public List<ChildsBean> childs;

        public static class CurrentBean {
            /**
             * id : 2
             * menu_name : App导航
             * parent_id : 0
             * url : NAVICATION
             * icon : http://yuhuantest.yunweiyan.com/file/6c64d3c9-f759-44fb-af2f-0165b257b64b.png
             */

            public int id;
            public String menu_name;
            public int parent_id;
            public String url;
            public String icon;
        }

        public static class ChildsBean {
            /**
             * childs : null
             * current : {"id":44,"menu_name":"巡检系统","parent_id":2,"url":"#","icon":null}
             * name : 巡检系统
             * value : #
             */

            public Object childs;
            public CurrentBeanX current;
            public String name;
            public String value;

            public static class CurrentBeanX {
                /**
                 * id : 44
                 * menu_name : 巡检系统
                 * parent_id : 2
                 * url : #
                 * icon : null
                 */

                public int id;
                public String menu_name;
                public int parent_id;
                public String url;
                public String icon;
            }
        }
    }

    public static class NewsBean {
        /**
         * id : 35
         * title : 11111111111
         * img : http://yuhuantest.yunweiyan.com/file/398f7927-3e5f-4f94-ba99-fba0d855a7c0.png
         */

        public int id;
        public String title;
        public String img;
    }

    public static class EquipmentStateBean {
        /**
         * id : 1
         * name : 测试设备1
         * img : www.baidu.com
         * state : 1
         * exception : 0
         */

        public int id;
        public String name;
        public String img;
        public int state;
        public String kks;
        public int exception;
    }

    public static class ExpertBean {
        /**
         * id : 39
         * name : 测试专家5
         * info : 没有描述
         * expert_type : 专家
         * img : www.baidu.com
         */

        public int id;
        public String name;
        public String info;
        public String expert_type;
        public String img;
    }
}
